home *** CD-ROM | disk | FTP | other *** search
- Path: cypher.3do.com!user
- From: tsw@3do.com (Tom Watson)
- Newsgroups: comp.sys.m68k
- Subject: Re: which family members support extb.l
- Date: Fri, 22 Mar 1996 15:41:38 -0800
- Organization: The 3DO Corporation
- Distribution: world
- Message-ID: <tsw-2203961541380001@cypher.3do.com>
- References: <4is33m$75e@michp1.redstone.army.mil>
- NNTP-Posting-Host: cypher.3do.com
-
- In article <4is33m$75e@michp1.redstone.army.mil>,
- joel@merlin.gcs.redstone.army.mil wrote:
-
- > From the 68302 docs, I cannot tell whether or not the ext byte to long
- (extb.l) instruction is supported. The ext instruction is supported but
- the general instruction manual says this is
- > only on the 020 up and cpu32.
- >
- > Confusingly, the code in question was submitted by a user who should
- have run this on a 302. So I think the 302 supports this instruction. but
- cannot confirm this from the manual.
- >
- > Even more confusingly, GNU binutils 2.5.2 accepted this instruction for
- the 68302 and the newer 2.6 does not. All I think this indicates is that
- someone read the manual closely between the two releases. :)
- >
- > The code in question is a small subroutine in RTEMS which provides an
- alternate implementation of the bfffo instruction for m68k family members
- without it. So it is important that this code actually work on all
- members of the family without the bfffo.
- >
- > Please please pretty please could someone definitively answer which m68k
- family members really have this instruction.
- >
-
- The only machines that don't have an extb.l are the 68000, 68008, 68010, and the
- ones that use the instruction set (68001, HC versions, ASICs).
-
- The functionality can be done with two instructions:
- ext.w (extend byte to word)
- ext.l (extend word to long)
-
- If I were trying anything, I just use the instruction, and see if it traps!
- It should be a simple test.
-
- --
- Tom Watson
- tsw@3do.com (Home: tsw@johana.com)
-